package com.yf.activity.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class DrMemberFavourable {
	
	private Integer id;//主键
	private Integer activityId;//后台活动ID
	private Integer uid;//用户主键
	private Integer type; // 1=返现券，2=加息券，3=体验金 4=翻倍券
	private String code;//编号
	private String name;//红包or加息券名称
	private BigDecimal amount;//金额
	private BigDecimal profitAmount;//获得的收益
	private BigDecimal raisedRates;//加息比例
	private BigDecimal enableAmount;//启用金额
	private Integer status;//状态
	private Date expireDate;//开始时间
	private Date usedTime;//实际使用时间
	private String remark;//备注
	private Integer userKey;//发放人
	private Date addtime;//添加时间
	private Integer source;//来源
	private BigDecimal multiple;//倍数
	private Integer productDeadline;//产品期限
	
	private String productName;
	private Integer maxProductDeadline;//适用最大产品期限
	private BigDecimal maxAmount;//适用最大投资金额


	/**
	 * '0:系统赠送 1:客服发放 3:活动赠送',
	 */
	@Getter
	@AllArgsConstructor
	public enum Source {
		SOURCE_SYSTEM(0, "系统赠送 "),
		SOURCE_CUSTOMER(1, "客服发放"),
		SOURCE_OPERATION(2, "运营发放"),
		SOURCE_ACTIVITY(3, "活动赠送"),
		SOURCE_MCALL(4, "等级特权");


		private Integer value;
		private String comments;
	}


}
